package com.matrix.im.converter;

import com.matrix.api.im.vo.ChatMessageVO;
import com.matrix.api.im.vo.SystemMessageVO;
import com.matrix.im.domain.model.ChatMessage;
import com.matrix.im.domain.model.SystemMessage;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 有点甜
 * @since 2025/8/5
 */
@Mapper
public interface ImConverter {

    ImConverter INSTANCE = Mappers.getMapper(ImConverter.class);

    ChatMessageVO toChatMessageVO(ChatMessage message);

    SystemMessageVO toSystemMessageVO(SystemMessage message);
}
